using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Reflection;
using System.Diagnostics;
namespace Test {
	class ImgColPath {
		static void MainX() {
			string filename="ImgColor.png";
			Font fnt=new Font("tahoma",10);
			int rw=6;
			using(Bitmap bmp=new Bitmap(500,50))
			using(Graphics g=Graphics.FromImage(bmp))
			{
				g.Clear(Color.White);
				for(int i=0;i<bmp.Width;i+=rw)
				{
					int pct=i*100/bmp.Width;
					int red=Math.Min(510*pct/100,255);
					int gre=Math.Min(510-510*pct/100,255);
					int blu=0;
					if(pct<20)
					{
						blu=220-200*pct*5/100;
						red=220-200*pct*5/100;
					}
					Color col=Color.FromArgb(red,gre,blu);
					Console.WriteLine("{0};r:{1}, g{2}, b:{3}",pct,red,gre,blu);
					g.FillRectangle(new SolidBrush(col),i,0,rw,rw);
					g.DrawRectangle(Pens.Black,i,0,rw,rw);
				}
				bmp.Save(filename);
			}
			Process.Start(filename);
		}
	}


	class ColorPath {
		List<Color> transitions=new List<Color>();


		public ColorPath() {
			transitions.Add(Color.White);
			transitions.Add(Color.LightBlue);
			transitions.Add(Color.Green);
			transitions.Add(Color.Yellow);
			transitions.Add(Color.Red);
			transitions.Add(Color.Brown);

		}

	}
}
